const Mock = require('mockjs')
const data = Mock.mock({
    'list|7': [{
        title: '@ctitle(2)',
    }]
})
console.log(data);


const list = Mock.mock({
    "list|20": [{
        name: '@cname',
        "id": "@id"
    }]
})
module.exports = {
    devServer: {
        before(app) {
            app.get('/list', (req, res) => {
                    res.send(data.list)
                }),
                app.get('/service', (req, res) => {
                    res.send(list.list)
                })
        }
    }
}